Simple Linear String Constraints 1

نویسندگان

  • Xiang Fu
  • Michael C. Powell
  • Michael Bantegui
  • Chung-Chih Li
چکیده

Modern web applications often suffer from command injection attacks such as Cross-Site Scripting and SQL Injection. Even equipped with sanitation code, many systems can still be penetrated due to the existence of software bugs (see e.g., the Samy Worm). It is desirable to automatically discover such vulnerabilities, given the bytecode of a web application. One solution would be symbolically executing the target system and constructing constraints for matching path conditions and attack patterns. The solution to such constraints is an attack signature, based on which, the attack process can be replayed. Constraint solving is the key to the success of symbolic execution. For web applications, string constraints receive most of the attention because web applications are essentially text processing programs. The study of string constraints has to balance between expressiveness and complexity. We present Simple Linear String Equation (SISE), a decidable fragment of the general string constraint system. SISE models a collection of regular replacement operations (such as greedy, reluctant, declarative, and finite replacement), which are frequently used by text processing programs. The semantics of these replacement operations are precisely modeled using finite state transducers, with various automata techniques developed for simulating procedural semantics such as left-most matching. By composing atomic transducers of a SISE, we show that a recursive algorithm can be used to compute the solution pool, which contains the value range of each variable in all feasible concrete solutions. Then a concrete variable solution can be synthesized from a solution pool. To accelerate solver performance, a symbolic representation of finite state transducer is developed, which allows the constraint solver to support a 16-bit Unicode alphabet in practice. The algorithm is implemented in a Java constraint solver called SUSHI.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

v 1 2 8 Ja n 19 94 Preprint PNPI - 1947 , January 1994 Critical Composite

In the paper the nilpotent conditions of BRST operator for new su-perconformal string model were found. This string includes anticom-mutation 2 − d fields additional to the standard Neveu-Schwarz super-conformal set which carry quark quantum numbers. In this case the superconformal symmetry is realized by a non-linear way. In the su-perconformal composite string new constraints for 1 and 1/2 co...

متن کامل

A Decision Procedure for Regular Membership and Length Constraints over Unbounded Strings

We prove that the quantifier-free fragment of the theory of character strings with regular language membership constraints and linear integer constraints over string lengths is decidable. We do that by describing a sound, complete and terminating tableaux calculus for that fragment which uses as oracles a decision procedure for linear integer arithmetic and a number of computable functions over...

متن کامل

On Simple Linear String Equations

This paper presents a novel backward constraint solving technique for analyzing text processing programs. String constraints are represented using a variation of word equation called Simple Linear String Equation (SLSE). SLSE supports precise modeling of various regular string substitution semantics in Java regex, which allows it to capture user input validation operations widely used in web ap...

متن کامل

3 v 1 4 J un 1 99 6 Tension as a perturbative parameter in non – linear string equations in curved space – time

A perturbation theory with respect to the tension parameter γ/α ′ for the non–linear equations of string, moving in curved space–time, is considered. Obtained are linearized motion equations for the functions of the n−th degree of approximation (n = 0, 1, 2). The study of string dynamics in curved space–time has evoked considerable interest [1–3]. The investigation of this problem is hampered b...

متن کامل

Canonical Quantization of Open String and Noncommutative Geometry

We perform canonical quantization of open strings in the D-brane background with a B-field. Treating the mixed boundary condition as a primary constraint, we get a set of secondary constraints. Then these constraints are shown to be equivalent to orbifold conditions to be imposed on normal string modes. These orbifold conditions are a generalization of the familiar orbifold conditions which ari...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011